﻿@model WebApi.Models.Attachment

@{
    ViewBag.Title = "CreateAttachment";
}

<h2>CreateAttachment</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Attachment</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.AbsolutePath)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AbsolutePath)
            @Html.ValidationMessageFor(model => model.AbsolutePath)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DataType)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DataType)
            @Html.ValidationMessageFor(model => model.DataType)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RootPath)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RootPath)
            @Html.ValidationMessageFor(model => model.RootPath)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Size)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Size)
            @Html.ValidationMessageFor(model => model.Size)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DisplayName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DisplayName)
            @Html.ValidationMessageFor(model => model.DisplayName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ParentGuid)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ParentGuid)
            @Html.ValidationMessageFor(model => model.ParentGuid)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
